package com.xbao.controller;

import io.swagger.annotations.Api;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by qingshengzheng on 18/11/6.
 */

@Controller
@Api("swaggerDemoController相关的api")
public class MainController {
    @RequestMapping(value = "/")
    @ResponseBody
    public String rootmain(){
    return "hello world!";
    }
}
